import request from '@/utils/request'

export function fetchBrancheducationList(query) {
  return request({
    url: '/getBrancheducationPage.do',
    method: 'post',
    params: query
  })
}

export function deleteBrancheducationById(id) {
  return request({
    url: '/deleteBrancheducationById.do',
    method: 'post',
    params: id
  })
}
export function updateBrancheducationById(brancheducation) {
  return request({
    url: '/updateBrancheducationById.do',
    method: 'post',
    params: brancheducation
  })
}

export function fetchOnlinevolunteerList(query) {
  return request({
    url: '/getOnlineVolunteerPage.do',
    method: 'post',
    params: query
  })
}

export function deleteOnlinevolunteerById(id) {
  return request({
    url: '/deleteOnlineVolunteerById.do',
    method: 'post',
    params: id
  })
}
export function updateOnlinevolunteerById(onlinevolunteer) {
  console.log(onlinevolunteer)
  return request({
    url: '/updateOnlineVolunteerById.do',
    method: 'post',
    params: onlinevolunteer
  })
}

export function fetchPenpelList(query) {
  return request({
    url: '/getPenpelPage.do',
    method: 'post',
    params: query
  })
}

export function deletePenpelById(id) {
  return request({
    url: '/deletePenpelById.do',
    method: 'post',
    params: id
  })
}
export function updatePenpelById(penpel) {
  return request({
    url: '/updatePenpelById.do',
    method: 'post',
    params: penpel
  })
}
